import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/exam/project/archive/page',
    method: 'get',
    params: query
  })
}

/**
 *  归档项目，打包zip
 * @param obj
 * @returns {AxiosPromise}
 */
export function doArchive(projectId) {
  return request({
    url: '/exam/project/archive/doArchive',
    method: 'post',
    params: {
      projectId
    }
  })
}
